﻿using RpcClient.Interface;
using RpcManageClient;

namespace Wedonek.RpcStore.Service.LocalEvent.Event
{
        internal class RefreshService : IEventHandler<ServerEvent>
        {
                private readonly IRpcServerCollect _RpcServer;

                public RefreshService (IRpcServerCollect server)
                {
                        this._RpcServer = server;
                }
                public void HandleEvent (ServerEvent data, string eventName)
                {
                        this._RpcServer.RefreshService (data.Datum);
                }
        }
}
